home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4002 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  822 b 

  1. Path: access1.digex.net!not-for-mail
  2. From: ell@access1.digex.net (Ell)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Struct as default arg?
  5. Date: 27 Jan 1996 05:04:25 GMT
  6. Organization: The Universe
  7. Message-ID: <4ecbop$5t5@news4.digex.net>
  8. References: <rplDLrDFr.35K@netcom.com> <4e94or$5nu@colossus.holonet.net>
  9. NNTP-Posting-Host: access1.digex.net
  10. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  11.  
  12. Russell Blackadar (russell@news.mdli.com) wrote:
  13. : Robert Laudati (rpl@netcom.com) wrote:
  14. : : I would like to use a structure as a default args as follows:
  15. : :
  16. : : typedef struct { double x; double y; } Point;
  17.  
  18. : Also, in C++, you can write
  19. :     struct Point { double x; double y; };
  20. : which IMO is preferable to a typedef, stylistically.
  21.  
  22. The immediately above example struct declaration is also the standard C
  23. one. 
  24.  
  25. Elliott
  26.  
  27.